#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: api_base_path.py 
@version:
@time: 2021/12/30 
"""
API_PATH_VERSION = 'BASE'

# Daas
API = "api"

# Users
USERS = "users"
USERS_LOGIN = "login"
USERS_GENERATETOKEN = "generateToken"

TIMESTAMP = "timeStamp"

# meta
METADATA_INSTANCES = "MetadataInstances"
META_SCHEMA = "schema"
META_ORIGINAL_DATA = "originalData"
META_UPDATE = "update"
META_FIND_INSPECT = 'findInspectPost'
META_FIND_TABLE_BY_ID = 'findTablesById'
META_SEARCH = 'search'
META_TABLE_CONNECTION_ID = 'tables?connectionId='

# metadataTransformerItems
METADATA_TRANSFORMERITEMS = 'metadataTransformerItems'

# DataFlows
DATAFLOWS = "DataFlows"
DATAFLOWS_DRAFT = "draft"
DATAFLOWS_REMOVEALL = "removeAll"
DATAFLOWS_UPDATE = "update"
DATAFLOWS_FINDONE = "findOne"
DATAFLOWS_STAGES = "stages"
DATAFLOWS_META = "metadata"

# Task
Task = 'Task'
TaskCheckName = 'checkName'
TasktranModelVersionControl = 'tranModelVersionControl'
TaskConfirm = 'confirm'
TaskBatchStart = 'batchStart'
TaskBatchStop = 'batchStop'
TaskBatchDelete = 'batchDelete'
TaskIds = 'taskIds'
TaskMETA = DATAFLOWS_META
FindTaskDetailById = 'findTaskDetailById'

# SubTask
SubTask = 'SubTask'
byTaskId = 'byTaskId'

# Measurement
Measurement = 'measurement'

# metadataDefinitions
METADATA_DEFINITIONS = 'MetadataDefinitions'
# job
JOB = "job"
JOB_ID_FILTER = "?id="

# Connections
CONNECTIONS = "Connections"
CONNECTIONS_FINDONE = 'findOne'
CONNECTIONS_COPY = 'copy'
CONNECTIONS_LIST_ALL = 'listAll'
# CustomQuery
CUSTOMQUERY = 'customQuery'

# DFS
TM = "tm"
TM_CHECK = "/tm/api/"
TCM = "tcm"
DFS_LOGIN_URL = "/console/api/tcm/user"

# inspects
INSPECTS = "Inspects"
INSPECTS_COUNT = "count"
INSPECTS_UPDATE = 'update'
INSPECTS_FIND_ONE = 'findOne'

# Workers
WORKERS = "Workers"
AVAILABLE_AGENT = "availableAgent"

# DatabaseTypes
DATABASE_TYPES = "DatabaseTypes"

# DataFlowsInsights
DATAFLOWS_INSIGHTS = "DataFlowInsights"
DATAFLOWS_INSIGHTS_RUNTIME_MONITOR = "runtimeMonitor"

# Modules
MODULES = "Modules"
MODULES_PREVIEW = "preview"
MODULES_RANKLISTS = "rankLists"
MODULES_APILIST = "apiList"

# Settings
SETTINGS = 'Settings'
SETTINGS_OBJECT_ID = 'ObjectId'

# roles
ROLES = 'roles'

# APISERVERS
APISERVERS = 'ApiServers'

# APICALLS
APICALLS = "ApiCalls"
APICALLS_FINDCLIENT = "findClient"

# OAUTH
OAUTH = 'oauth'
OAUTH_TOKEN = 'token'
